Give me the mips code in stack..... [closed]
Posted
by Mona Liza
on Stack Overflow
See other posts from Stack Overflow
or by Mona Liza
Published on 2010-04-04T18:26:13Z
Indexed on
2010/04/04
18:33 UTC
Read the original article
Hit count: 270
yes
int i:
void set_array (int num) {
int array[10];
for (i=0; i<10; i++) {
array[i] = compare(num, i);
}
}
int compare(int a , int b) {
if (sub(a,b) >= 0)
return 1;
else
return 0;
}
int sub (int a , int b) {
return a-b;
}
© Stack Overflow or respective owner